package com.juefeng.SMS.service.task;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;

import com.juefeng.SMS.service.PhoneMessageStatusService;
import com.juefeng.SMS.service.task.base.BaseTimer;

public class AutoCheckGNSMSStatusTimer implements BaseTimer {
	
	private static Log log = LogFactory.getLog(AutoCheckGNSMSStatusTimer.class);
	@Autowired
	private PhoneMessageStatusService phoneMessageStatusService;

	@Override
	public void start() {
		try {
			log.info("开始 嘎牛 短信状态检查.........");
			phoneMessageStatusService.checkGNSMSStatus();
			log.info("嘎牛 短信状态检查 完成.........");

		} catch (RuntimeException e) {
			log.error("嘎牛 短信状态检查出异常了.....", e);
		}
	 
	}

}
